﻿using Microsoft.Extensions.DependencyInjection;
using ViewModel.WindowViewModel;

namespace ViewModel;

public class ViewModelLocator
{
    public MainViewModel? Mian { get; set; }
    public LoginViewModel? Login { get; set; }

    public ViewModelLocator()
    {
        Mian = StartUp.ServiceProvider?.GetRequiredService<MainViewModel>();
        Login = StartUp.ServiceProvider?.GetRequiredService<LoginViewModel>();
    }
}